//
//  LXDAllSongCollectionViewCell.m
//  BLDMusics
//
//  Created by lxd on 16/3/22.
//  Copyright © 2016年 李晓丹. All rights reserved.
//

#import "LXDAllSongCollectionViewCell.h"

@interface LXDAllSongCollectionViewCell ()



@end

@implementation LXDAllSongCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        [self creatCell];
    }
    return self;
    
}


- (void)creatCell {
    
    self.textLable = [[UILabel alloc] init];
    [self.contentView addSubview:_textLable];
    
    
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    self.backgroundColor = [UIColor colorWithRed:252 / 255.0 green:165 / 255.0  blue:30 / 255.0 alpha:0.4];
    
    self.textLable.frame = self.bounds;
    _textLable.textAlignment = NSTextAlignmentCenter;
    _textLable.textColor = [UIColor blackColor];
    
}


- (void)setModel:(LXDAllSongModel *)model {
    _model = model;
    _textLable.text = model.tag;
}



- (void)layoutSubviews {
    [super layoutSubviews];
}
@end
